import hasRole from '@/directive/permission/hasRole.js';
import hasPermi from '@/directive/permission/hasPermi.js';

export const installDirectives = function (app) {
  app.directive('hasRole', hasRole);
  app.directive('hasPermi', hasPermi);
};

if (window.app) {
  window['hasRole'] = hasRole;
  window['hasPermi'] = hasPermi;
}
